<script setup>
  import { provide, ref } from 'vue';
import MyParent from './components/MyParent.vue';

  // provide 向子代提供内容
  const money = ref(10000000)
  provide('m', money)
</script>

<template>
  <div class="app">
    <h3>App组件</h3>
    <MyParent />
  </div>
</template>


<style scoped>
  .app {
    padding: 20px;
    background-color: #c34fb1;
  }
</style>